<?php /* Smarty version Smarty-3.1.21, created on 2015-06-01 14:36:44
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\show\index.html" */ ?>
<?php /*%%SmartyHeaderCode:309235569c750f22cb5-60107401%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4967dbe2f9e1d5ebaf8fa3cc5a1cc57b8725a4da' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\show\\index.html',
      1 => 1433140260,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '309235569c750f22cb5-60107401',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_5569c7513d82c8_91745492',
  'variables' => 
  array (
    'mbx' => 0,
    'v' => 0,
    'askRow' => 0,
    'lv' => 0,
    'acceptdata' => 0,
    'answerRows' => 0,
    'islike' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5569c7513d82c8_91745492')) {function content_5569c7513d82c8_91745492($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.date_format.php';
if (!is_callable('smarty_modifier_substr')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.substr.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<?php echo $_smarty_tpl->getSubTemplate ("../Common/head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/question.css" />
	<?php echo '<script'; ?>
	type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/Js/ajaxquest.js"><?php echo '</script'; ?>
>
<!-- top 结束-->
	<div id='location'>
		<a href="">全部分类</a>
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['mbx']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
			&gt;&nbsp;<?php if ($_smarty_tpl->tpl_vars['v']->value['cid']==$_smarty_tpl->tpl_vars['askRow']->value['cid']) {?>&nbsp;&nbsp;
					  <?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>

					  <?php } else { ?>
					  &nbsp;<a href="<?php echo @constant('__APP__');?>
?c=category&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['cid'];?>
&status=0"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>&nbsp;&nbsp; 
					  <?php }?>
			<?php } ?>
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<?php if ($_smarty_tpl->tpl_vars['askRow']->value['solve']==1) {?>
						<div class='ans-state'></div>
						<?php } else { ?>
						<div class='ans-state wait'></div>
					<?php }?>
					<div class='answer'>
						<p class='ans-title'><?php echo $_smarty_tpl->tpl_vars['askRow']->value['content'];?>

							<b class='point'><?php echo $_smarty_tpl->tpl_vars['askRow']->value['reward'];?>
</b>
						</p>
					</div>
					<ul>
						<li><a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['askRow']->value['uuid'];?>
"><?php echo $_smarty_tpl->tpl_vars['askRow']->value['username'];?>
</a></li>
						<li><i class='level lv<?php echo $_smarty_tpl->tpl_vars['lv']->value;?>
' title='Level <?php echo $_smarty_tpl->tpl_vars['lv']->value;?>
'></i></li>
						<li><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['askRow']->value['time'],"%Y-%m-%d");?>
</li>
				
					</ul>
					<div class='ianswer'>
						<form action="javascript:;" id="answerform" style="position:relative;">
							<p style="float:left;">我来回答 </p><h3 id="inputError" style="color:red;float:right;display:none;">请输入2-200个字符</h3>
							<?php if (isset($_SESSION['uid'])) {?>
								<input type="hidden" name="uid" value='<?php echo $_SESSION['uid'];?>
' />
								<textarea id="questcontent" name="content" maxlength="200"></textarea>
							<?php } else { ?>
									<h3 class="plaselogin" style="position:absolute;font-size:25px;left:40%;top:40%;"><a href="javascript:;" onclick="$('.login').click()">请您先登陆</a></h3>
									<textarea id="questcontent" name="content" disabled="disabled"></textarea>
									<input type="hidden" name="uid" value='' />
							<?php }?>
							<input type="hidden" name='qid' value='<?php echo $_smarty_tpl->tpl_vars['askRow']->value['asid'];?>
'>
							<input type="submit" value='提交回答' />
						</form>
						
					</div>
					<!-- 满意回答 -->
					<?php if ($_smarty_tpl->tpl_vars['askRow']->value['solve']==1) {?>
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'><?php echo $_smarty_tpl->tpl_vars['acceptdata']->value['content'];?>
</p>
						<dl>
							<dt>
								<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['acceptdata']->value['uid'];?>
"><img src="<?php echo @constant('__PUBLIC__');
echo $_smarty_tpl->tpl_vars['acceptdata']->value['face'];?>
" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['acceptdata']->value['uid'];?>
"><?php echo $_smarty_tpl->tpl_vars['acceptdata']->value['username'];?>
<i class='level lv1'></i></a>
							</dd>
							<dd>采纳率:20%</dd>
						</dl>
					</div>
					<?php } else { ?>
						<div class='ans-right'>
							<h1 style="text-align: center;color:#40B60E;">目前还没有正确回答哟^_^</h1>
						</div>
					<?php }?>
					<!-- 满意回答 -->
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong><?php echo count($_smarty_tpl->tpl_vars['answerRows']->value);?>
</strong> 条回答</p>
					<ul>
						<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['an'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['an']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['answerRows']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['name'] = 'an';
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['an']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['an']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['an']['total']);
?>
						<li>
							<div class='face'>
								<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['uid'];?>
">
									<img src="<?php echo @constant('__PUBLIC__');
echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['face'];?>
" width='48' height='48'/>
									<?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['username'];?>

								</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['content'];?>
<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['time'],"%Y-%m-%d");?>
)</span></p>
							</div>
								<?php if (isset($_SESSION['uid'])&&$_smarty_tpl->tpl_vars['askRow']->value['uuid']==$_SESSION['uid']&&$_smarty_tpl->tpl_vars['askRow']->value['solve']!=1) {?>
									<a href="<?php echo @constant('__APP__');?>
?c=answer&a=accept&anid=<?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['anid'];?>
&asid=<?php echo $_GET['asid'];?>
&asuid=<?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['uid'];?>
&anusername=<?php echo $_smarty_tpl->tpl_vars['answerRows']->value[$_smarty_tpl->getVariable('smarty')->value['section']['an']['index']]['username'];?>
" class='adopt-btn'>采纳</a>
								<?php }?>
						</li>
						<?php endfor; endif; ?>
					</ul>
					<!--<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>-->
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
						<?php if (count($_smarty_tpl->tpl_vars['islike']->value)==0) {?>
							<tr>
								<td><h1 style="color:#41B90E">目前没有相关的问题~！</h1></td>
							</tr>
						<?php } else { ?>
							<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['islike']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
							<tr>
								<td class='t1'><a href="<?php echo @constant('__APP__');?>
?c=show&asid=<?php echo $_smarty_tpl->tpl_vars['v']->value['asid'];?>
"><?php echo smarty_modifier_substr($_smarty_tpl->tpl_vars['v']->value['content'],30);?>
</a></td>
								<td><?php echo $_smarty_tpl->tpl_vars['v']->value['answer'];?>
&nbsp;回答</td>
								<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['time'],"%Y-%m-%d");?>
</td>
							</tr>
							<?php } ?>
						<?php }?>
					</table>
				</div>
			</div>
		<!-- 右侧 -->
		<?php echo $_smarty_tpl->getSubTemplate ("../Common/right.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- ---右侧结束---- -->
			
		</div>

	</div>
		
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<?php echo $_smarty_tpl->getSubTemplate ("../Common/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--[if IE 6]>
    <?php echo '<script'; ?>
 type="text/javascript" src="./Js/iepng.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    <?php echo '</script'; ?>
>
<![endif]-->
</body>
</html>
<!-- 底部结束 --><?php }} ?>
